<template>
  <swiper :options="swiperOption" >
    <swiper-slide v-for="item of swiperList" :key="item.id">
      <img class="swiper-img" :src="item.imgUrl">
    </swiper-slide>
    <div class="swiper-pagination"  slot="pagination"></div>
  </swiper>
</template>
<script>
export default {
  name: 'HomeSwiper',
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true,
        autoplay: 3000
      },
      swiperList: [{
        id: '0001',
        imgUrl: 'http://img4.imgtn.bdimg.com/it/u=793147007,1730365037&fm=26&gp=0.jpg'
      }, {
        id: '0002',
        imgUrl: 'http://img2.imgtn.bdimg.com/it/u=3713656693,920077283&fm=26&gp=0.jpg'
      }]
    }
  }
}
</script>
<style scoped>
  .wrapper{
    overflow: hidden;
    width: 100%;
    height: 0;
  }
  .swiper-img{
    width:100%
  }
</style>
